package org.abettor.tanqiu.gameloop.object;

import com.badlogic.gdx.math.Vector2;

/**
 * 球的状态
 * @author jzh
 *
 */
public class Ball {
	public static final int BALL_STATUS_FLY = 0;//正在处于飞行状态
	public static final int BALL_STATUS_INRAIL_F = 1;//正处在轨道内,正向移动
	public static final int BALL_STATUS_INRAIL_B = 2;//正处在轨道内,反向移动
	public static final int BALL_STATUS_DOWN = 3;//正处在下降状态
	public static final int BALL_STATUS_INRAILING = 4;//正在加入队列中
	public static final int BALL_COLOR_RED = 0;//红色
	public static final int BALL_COLOR_GREEN = 1;//绿色
	public static final int BALL_COLOR_BLUE = 2;//蓝色
	public static final int BALL_COLOR_GRAY = 3;//灰色
	public static final int BALL_COLOR_ORANGE = 4;//橙色
	public static final int BALL_COLOR_ALL = 5;//万用色
	public static final int BALL_BACK = 6;//反向球
	private int color;//球的颜色
	//BallMapPart inMapPart;//
	private int status;//球的状态
	/**
	 * 构造球的对象
	 * @param color
	 * @param position
	 * @param radius
	 */
	public Ball(int color,Vector2 position){
		this.color = color;
		this.position = position;
	}
	/**
	 * 更新时间的操作
	 * @param updateTime
	 */
	public void update(float updateTime,BallMap ballMap){
		
	}
	private Vector2 position = new Vector2(0,0);//球的位置
	private Vector2 flyVelocity = new Vector2(0,0);//飞行状态时球的速度
	private float radius;// 球的半径
	private float railVelocity = 0;//轨道时跑的速度
	public int getColor() {
		return color;
	}
	public void setColor(int color) {
		this.color = color;
	}
	public Vector2 getPosition() {
		return position;
	}
	public void setPosition(Vector2 position) {
		this.position = position;
	}
	public Vector2 getFlyVelocity() {
		return flyVelocity;
	}
	public void setFlyVelocity(Vector2 flyVelocity) {
		this.flyVelocity = flyVelocity;
	}
	public float getRailVelocity() {
		return railVelocity;
	}
	public void setRailVelocity(float railVelocity) {
		this.railVelocity = railVelocity;
	}
	public float getRadius() {
		return radius;
	}
	public void setRadius(float radius) {
		this.radius = radius;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
//	public BallMapPart getInMapPart() {
//		return inMapPart;
//	}
//	public void setInMapPart(BallMapPart inMapPart) {
//		this.inMapPart = inMapPart;
//	}
	
}
